drm/panel: Add support for the Raspberry Pi 7" Touchscreen.
authorEric Anholt <eric@anholt.net>
Tue, 26 Apr 2016 20:46:13 +0000 (13:46 -0700)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 20:31:38 +0000 (20:31 +0000)
commitb97ca8ec8fc77ea22dc92f590cc5017e33388952
treef4991190c0cc85abb66cdb75a1ef2446471c58ad
parent841013f071a72f6dff611d2252f08ebcedeb87f6
drm/panel: Add support for the Raspberry Pi 7" Touchscreen.

This driver communicates with the Atmel microcontroller for sequencing
the poweron of the TC358762 DSI-DPI bridge and controlling the
backlight PWM.

The following lines are required in config.txt, to keep the firmware
from trying to bash our I2C lines and steal the DSI interrupts:

    disable_touchscreen=1
    ignore_lcd=2
    mask_gpu_interrupt1=0x1000

This means that the firmware won't power on the panel at boot time (no
rainbow) and the touchscreen input won't work.  The native input
driver for the touchscreen still needs to be written.

v2: Set the same default orientation as the closed source firmware
    used, which is the best for viewing angle.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/panel/Kconfig
drivers/gpu/drm/panel/Makefile
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c [new file with mode: 0644]